package com.lcc.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcc.common.utils.PageUtils;
import com.lcc.gulimall.product.entity.BrandEntity;
import com.lcc.gulimall.product.entity.CategoryBrandRelationEntity;
import com.lcc.gulimall.product.vo.BrandVo;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author Yunmo
 * @email li_cuican@163.com
 * @date 2021-11-03 21:02:34
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据品牌ID和分类ID补充品牌名和分类名
     * @param categoryBrandRelation
     */
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String brandName);

    void updateCategory(Long catId, String catName);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

